package com.zeta.eduservice.service;

import com.zeta.eduservice.entity.question.EduCourse;
import com.zeta.eduservice.entity.vo.CourseInfoForm;
import com.zeta.eduservice.entity.vo.CoursePublishVo;
import com.zeta.eduservice.entity.vo.CourseQuery;
import com.zeta.eduservice.entity.vo.front.CourseFrontVo;
import com.zeta.eduservice.entity.vo.front.CourseWebVo;

import java.io.Serializable;
import java.util.Map;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author zeta
 * @since 2020-08-02
 */
public interface EduCourseService extends IService<EduCourse> {

	String saveCourseInfo(CourseInfoForm courseInfoForm);

	CourseInfoForm getCourseInfo(String courseId);

	void updateCourseForm(CourseInfoForm form);

	CoursePublishVo getCoursePublishVoById(String id);
	
	void pageQuery(Page<EduCourse> pageParam, CourseQuery courseQuery);

	boolean removeById1(Serializable id);

	Map<String, Object> getCourseFrontList(Page<EduCourse> pageParam, CourseFrontVo courseFrontVo);

	CourseWebVo getBaseCourseInfo(String courseId);
}
